﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cool.Application.System.RoleService.Dtos;
using Cool.Core.Entities.System;

namespace Cool.Application.System.RoleService
{
    public interface IRoleService
    {
        /// <summary>
        /// 查询角色列表
        /// </summary>
        /// <returns></returns>
        Task<PagedList<RoleReturnDto>> GetListAsync(RoleTableSearchDto menuTreeTableSearchDto);


       

        /// <summary>
        /// 查询角色详细
        /// </summary>
        /// <param name="roleId"></param>
        /// <returns></returns>
        Task<SysRole> GetAsync(int roleId);


        /// <summary>
        /// 新增角色
        /// </summary>
        /// <param name="role"></param>
        Task<SysRole> AddAsync(RoleInputDto role);

        /// <summary>
        /// 修改角色
        /// </summary>
        /// <param name="role"></param>
        Task UpdateAsync(RoleInputDto role);

        /// <summary>
        /// 删除角色
        /// </summary>
        /// <param name="roleId"></param>
        Task DeleteAsync(int roleId);

    }
}
